package com.okaixz.client.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.okaixz.common.annotation.Excel;
import com.okaixz.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 讯飞智能体对象 app
 *
 * @author ruoyi
 * @date 2024-08-20
 */
@Data
public class AppDto extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 状态 0禁用 1启用 */
    @Excel(name = "状态 0禁用 1启用")
    private Long status;
    /** tabId*/
    @Excel(name = "所属标签id")
    private Long tabId;

    /** 应用名 */
    @Excel(name = "所属标签名")
    private String tabName;

    /** 应用名 */
    @Excel(name = "应用名")
    private String name;

    /** 应用图标 */
    @Excel(name = "应用图标")
    private String icon;

    /** 应用描述信息 */
    @Excel(name = "应用描述信息")
    private String descMsg;

    private String seoTitle;
    private String seoKeywords;

    private Long useCount;//使用次数

    private String example;//使用示例


    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** tabId*/
    @Excel(name = "应用类型")//2千问app 1讯飞app 0其它
    private Long type;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("status", getStatus())
            .append("name", getName())
            .append("icon", getIcon())
            .append("descMsg", getDescMsg())
            .append("createdTime", getCreatedTime())
            .append("modifyTime", getModifyTime())
            .toString();
    }
}
